package com.stottlerhenke.simbionic.editor;

import javax.swing.Icon;
import javax.swing.ImageIcon;

public class SB_Action extends SB_Function
{
    private static final long serialVersionUID = 2302585093L + 2;

    protected static ImageIcon _icon = null;
    protected static ImageIcon _coreIcon = null;

    public SB_Action()  // constructor for Externalizable object
    {
    }

    public SB_Action(String name)
    {
        super(name);
    }

    public Icon getIcon()
    {
      if (_core)
      {
        if (_coreIcon == null)
          _coreIcon = Util.getImageIcon("CoreAction.gif");
        return _coreIcon;
      }
      else
      {
        if (_icon == null)
          _icon = Util.getImageIcon("Action.gif");
        return _icon;
      }
    }

    public String getTag() { return "action"; }
}
